#!/bin/sh

# create_rsync.sh
# wiSync
#
# Created by Youssef Francis on 12/9/07.
# Copyright 2007 iFrancis Development. All rights reserved.

if [ -d /Applications/wiSync/Resources/Scripts ]
then
rm -r /Applications/wiSync/Resources/Scripts
mkdir /Applications/wiSync/Resources/Scripts
fi

echo rsync -az ${macuser}@${ipaddr}:"'"'"'${macdir}/'"'"'" "/private/var/root/${istore}" > /Applications/wiSync/Resources/Scripts/rsync.sh
echo rsync -az "/private/var/root/${istore}/" ${macuser}@${ipaddr}:"'"'"'${macdir}'"'"'" >> /Applications/wiSync/Resources/Scripts/rsync.sh
chmod +x /Applications/wiSync/Resources/Scripts/rsync.sh